<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Main extends CI_Controller {

    public function index() {
        redirect('main/home');
    }

    public function home() {
        if (false === $this->session->userdata('USR_ID'))
            redirect('account/login');

        $this->layout
                ->setTitle('Accueil')
                ->view('main/home')
                ->display()
        ;
    }

}